package com.zhouyu;

import org.aspectj.weaver.ast.Var;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class EnvironmentRequireTest {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
		context.register(AppConfig.class);
		context.getEnvironment().setRequiredProperties("zyt");
		context.refresh();
	}
}
